package Core;

import java.util.ArrayList;

public class Player
{
    private String name;
    private Strategy strategy;
    private Symbol symbole;
    
    public Player(String name, Strategy strategy, Symbol symbole)
    {
	this.strategy = strategy;
	this.symbole = symbole;
	this.name = name;
    }
    
    public String getName()
    {
        return name;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public Strategy getStrategy()
    {
        return strategy;
    }

    public void setStrategy(Strategy strategy)
    {
        this.strategy = strategy;
    }

    public Symbol getSymbole()
    {
        return symbole;
    }

    public void setSymbole(Symbol symbole)
    {
        this.symbole = symbole;
    }

    public Position play(ArrayList<Position> moves, Board board)
    {
	return this.strategy.chooseMove(moves,board);
    }

}
